package cc.co.bengkeljava.codex.designpattern.adapter.ex1;

public class Client {
	public static void main(String[] args) {
		AcIna laptopIna1 = new LaptopIna1();
		testAc(laptopIna1);

		AcIna laptopIna2 = new LaptopIna2();
		testAc(laptopIna2);

		AcMalay laptopMalay1 = new LaptopMalay1();
		AcIna adapter = new AcMalayInaAdapter(laptopMalay1);
		testAc(adapter);

	}

	public static void testAc(AcIna acIna) {
		acIna.plugWith2Feet();
	}
}
